From 69ca360b59f49087a2fd9b604d82c6651579ee48 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Mon, 20 Mar 2017 14:59:14 +0100 Subject: [PATCH] window: Remove pointless ternary operator we're already checking for orientation == GTK_ORIENTATION_HORIZONTAL right before this line, so just pass GTK_ORIENTATION_VERTICAL. --- gtk/gtkwindow.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index f22b9ec91d..50fe2acec5 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -685,8 +685,7 @@ gtk_window_measure (GtkWidget *widget, int size = for_size; if (orientation == GTK_ORIENTATION_HORIZONTAL && for_size >= 0) gtk_widget_measure (priv->title_box, - orientation == GTK_ORIENTATION_HORIZONTAL ? GTK_ORIENTATION_VERTICAL : - GTK_ORIENTATION_HORIZONTAL, + GTK_ORIENTATION_VERTICAL, -1, NULL, &size, NULL, NULL); -- 2.30.2